/*
 * @Descripttion:
 * @version:
 * @Author: 麦冬果果
 * @Date: 2021-03-30 14:36:57
 * @LastEditors: 麦冬果果
 * @LastEditTime: 2021-03-30 14:37:36
 */
package api

import (
	"mdgg/library/response"
	"mdgg/library/service"

	"github.com/gogf/gf/frame/g"
	"github.com/gogf/gf/net/ghttp"
)

type Captcha struct{}

// @Summary 获取验证码图片信息
// @Description 获取验证码图片信息
// @Tags 公共
// @Success 0 {object} response.Response "{"code": 200, "data": [...]}"
// @Router /system/public/verify [post]
// @Security
func (p *Captcha) Img(r *ghttp.Request) {
	idKeyC, base64stringC := service.GetVerifyImgString()
	response.SusJson(true, r, "ok", g.MapStrStr{"idKeyC": idKeyC, "base64stringC": base64stringC})
}
